/* eslint-disable */
import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Home from '@/components/Home'
import Testcase from '@/components/TestCase'
import ConfigTable from '@/components/ControlCenter/ConfigTable'
import MockWS from '@/components/MockWebServiceConfig/MockWS'
import Report from '@/components/ReportViewer/Report'
import Relationship from '@/components/Relationship'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/PCM_AutomationViewer',
      name: 'Home',
      component: Home,
      children: [
        { path: 'TestCaseTable', component: ConfigTable, name: 'get' },
        { path: 'edit', component: Testcase, name: 'edit' },
        { path: 'add', component: Testcase, name: 'add' },
        { path: 'mock', component: MockWS, name: 'mock' },
        { path: 'relationship', component: Relationship, name: 'relationship' },
      ]
    },
    {
      path: '/report/:automationId',
      name: 'Report',
      component: Report
    }

  ]
})
